package com.songcy.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import com.dao.ObjectDao;
import com.pro.bean.Info;

public class GetSameNameInfoDao extends ObjectDao{
	public List getinfos(String name)
	{
		String sql = "select * from info where firstname='"+name+"'";
		System.out.println(sql);
		return super.findAll(sql, new Info());
	}
	
}
